package com.chuzhiyun.chengguoxy.global;

import com.chuzhiyun.chengguoxy.feature.bean.UserInfoBean;

public class UserConfig {

    private static UserInfoBean mLoginInfo = null;//静态对象
    private UserConfig () {}//私有化构造

    public static UserInfoBean getInstance() {//静态get方法
        if (mLoginInfo == null) {
            synchronized (UserConfig.class) {
                if (mLoginInfo == null) {
                    mLoginInfo = new UserInfoBean();
                }
            }
        }
        return mLoginInfo;

    }
    public static void setInstance(UserInfoBean loginInfo){//静态set方法
        mLoginInfo=loginInfo;
    }
}
